import { defineStore } from 'pinia'
import { ref } from 'vue'

export default defineStore('menu', () => {
  const menuList = ref([])

  // 获取menuList
  const getMenuList = () => menuList
  // 设置menuList
  const setMenuList = (val) => {
    menuList.value = val
  }

  return {
    menuList,
    getMenuList,
    setMenuList
  }
})
